<template>
    <p>这是父组件</p>
    <ChilerCom :title="msg" @changer="changeChild"/>
</template>
<script>
import ChilerCom from "./ChilerCom.vue"
  export default{
    //注册
    components:{
        ChilerCom
    },
    data(){
        return{
            msg:'数据'
        }
    },
    methods:{
        changeChild(value){
         this.msg=value;
        }
    }

  }
</script>